import request from '@/utils/request'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/module/`

export const getList = (params, config = {}) => {
  params = params || {}
  return request.get(apiPrefix + 'GetList', { params: params, ...config })
}
export const add = (params, config = {}) => {
  return request.post(apiPrefix + 'Add', params, config)
}
// export const update = (params, config = {}) => {
//   return request.post(apiPrefix + 'Update', params, config)
// }
// export const softDelete = (params, config = {}) => {
//   return request.post(apiPrefix + 'Delete', { params: params, ...config })
// }
